package br.com.orion.sga.to;

import java.util.LinkedHashMap;
import java.util.TreeMap;

import br.com.orion.sga.constants.Constants;

public class MonthPaymentReport {

	private String monthAndYear;
	private TreeMap<Integer, String> paymentDays;
	
	public MonthPaymentReport(String monthAndYear) {
		this.monthAndYear = monthAndYear;
		paymentDays = new TreeMap<Integer, String>();
		paymentDays.put(Constants.day5, "-");
		paymentDays.put(Constants.day10, "-");
		paymentDays.put(Constants.day15, "-");
		paymentDays.put(Constants.day20, "-");
		paymentDays.put(Constants.day25, "-");
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((monthAndYear == null) ? 0 : monthAndYear.hashCode());
		return result;
	}




	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		MonthPaymentReport other = (MonthPaymentReport) obj;
		if (monthAndYear == null) {
			if (other.monthAndYear != null)
				return false;
		} else if (!monthAndYear.equals(other.monthAndYear))
			return false;
		return true;
	}




	public String getMonthAndYear() {
		return monthAndYear;
	}

	public void setMonthAndYear(String monthAndYear) {
		this.monthAndYear = monthAndYear;
	}


	public TreeMap<Integer, String> getPaymentDays() {
		return paymentDays;
	}
	public void setPaymentDays(TreeMap<Integer, String> paymentDays) {
		this.paymentDays = paymentDays;
	}
}
